commit
148f52d88c
2 changed files with 12 additions and 7 deletions
|
@ -32,6 +32,7 @@
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Sets how many lines of history VIM has to remember
|
" Sets how many lines of history VIM has to remember
|
||||||
set history=500
|
set history=500
|
||||||
|
set nu
|
||||||
|
|
||||||
" Enable filetype plugins
|
" Enable filetype plugins
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
|
|
@ -82,13 +82,17 @@ set grepprg=/bin/grep\ -nH
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Nerd Tree
|
" => Nerd Tree
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
let g:NERDTreeWinPos = "right"
|
let g:NERDTreeWinPos = "left"
|
||||||
let NERDTreeShowHidden=0
|
let NERDTreeShowHidden=0
|
||||||
let NERDTreeIgnore = ['\.pyc$', '__pycache__']
|
let NERDTreeIgnore = ['\.pyc$', '__pycache__']
|
||||||
let g:NERDTreeWinSize=35
|
let g:NERDTreeWinSize=35
|
||||||
map <leader>nn :NERDTreeToggle<cr>
|
map <leader>nn :NERDTreeToggle<cr>
|
||||||
map <leader>nb :NERDTreeFromBookmark<Space>
|
map <leader>nb :NERDTreeFromBookmark<Space>
|
||||||
map <leader>nf :NERDTreeFind<cr>
|
map <leader>nf :NERDTreeFind<cr>
|
||||||
|
autocmd VimEnter * NERDTree | wincmd p
|
||||||
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -97,11 +101,11 @@ map <leader>nf :NERDTreeFind<cr>
|
||||||
let g:multi_cursor_use_default_mapping=0
|
let g:multi_cursor_use_default_mapping=0
|
||||||
|
|
||||||
" Default mapping
|
" Default mapping
|
||||||
let g:multi_cursor_start_word_key = '<C-s>'
|
let g:multi_cursor_start_word_key = '<C-d>'
|
||||||
let g:multi_cursor_select_all_word_key = '<A-s>'
|
let g:multi_cursor_select_all_word_key = '<A-d>'
|
||||||
let g:multi_cursor_start_key = 'g<C-s>'
|
let g:multi_cursor_start_key = 'g<C-d>'
|
||||||
let g:multi_cursor_select_all_key = 'g<A-s>'
|
let g:multi_cursor_select_all_key = 'g<A-d>'
|
||||||
let g:multi_cursor_next_key = '<C-s>'
|
let g:multi_cursor_next_key = '<C-d>'
|
||||||
let g:multi_cursor_prev_key = '<C-p>'
|
let g:multi_cursor_prev_key = '<C-p>'
|
||||||
let g:multi_cursor_skip_key = '<C-x>'
|
let g:multi_cursor_skip_key = '<C-x>'
|
||||||
let g:multi_cursor_quit_key = '<Esc>'
|
let g:multi_cursor_quit_key = '<Esc>'
|
||||||
|
@ -170,7 +174,7 @@ let g:ale_lint_on_enter = 0
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Git gutter (Git diff)
|
" => Git gutter (Git diff)
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
let g:gitgutter_enabled=0
|
let g:gitgutter_enabled=1
|
||||||
nnoremap <silent> <leader>d :GitGutterToggle<cr>
|
nnoremap <silent> <leader>d :GitGutterToggle<cr>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue