diff options
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -64,7 +64,8 @@ let g:netrw_altv = 1 | " open files on the righ | |||
64 | 64 | ||
65 | " NERDTree: ==========================================. | 65 | " NERDTree: ==========================================. |
66 | Plug 'scrooloose/nerdtree' | " replace NetRW, which is kind of buggy | 66 | Plug 'scrooloose/nerdtree' | " replace NetRW, which is kind of buggy |
67 | let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use <m> to create files in that included directory | 67 | let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use <m> to create files in that included directory |
68 | let NERDTreeIgnore = ['\.aux$'] | ||
68 | set winwidth=30 " keep NERDTreeWindow at least this size | 69 | set winwidth=30 " keep NERDTreeWindow at least this size |
69 | set winminwidth=30 " (and all other windows, so TODO: watch out) | 70 | set winminwidth=30 " (and all other windows, so TODO: watch out) |
70 | 71 | ||
@@ -241,7 +242,7 @@ set shell=/bin/bash | " many scripts rely on bash, but its path varies | |||
241 | " set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text | 242 | " set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text |
242 | set breakindent | " Every wrapped line will continue visually indented | 243 | set breakindent | " Every wrapped line will continue visually indented |
243 | set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) | 244 | set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) |
244 | set cmdheight=2 | " self explaining | 245 | set cmdheight=2 | " sets the command line's height |
245 | set complete+=d | " scan current and included files for defined name or macro | 246 | set complete+=d | " scan current and included files for defined name or macro |
246 | set complete+=i | " scan current and included files for completions | 247 | set complete+=i | " scan current and included files for completions |
247 | set concealcursor=nc | " limits the display of concealed text to normal and command mode | 248 | set concealcursor=nc | " limits the display of concealed text to normal and command mode |
@@ -277,11 +278,11 @@ set shiftround | " indent/unindent snaps to multiple of shiftwidt | |||
277 | set showcmd | " essential: show keys of combined commands in the lower right corner | 278 | set showcmd | " essential: show keys of combined commands in the lower right corner |
278 | set t_Co=256 | " required on some ssh sessions | 279 | set t_Co=256 | " required on some ssh sessions |
279 | " set textwidth=100 | " line length (80 used to be default, but...) | 280 | " set textwidth=100 | " line length (80 used to be default, but...) |
280 | " set textwidth=120 | " line length (80 used to be default, but...) | 281 | set textwidth=120 | " @IPQ |
281 | set colorcolumn=120 | 282 | set colorcolumn=120 | " @IPQ |
282 | set thesaurus+=/home/max/.vim/thesaurus/php.txt | 283 | set thesaurus+=/home/max/.vim/thesaurus/php.txt |
283 | set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) | 284 | set ts=4 sts=4 sw=4 expandtab | " @IPQ |
284 | set ttimeoutlen=10 | " set esc key timeout in ms- | 285 | set ttimeoutlen=50 | " set esc key timeout in ms- |
285 | set updatetime=1000 | " updates the screen more often | 286 | set updatetime=1000 | " updates the screen more often |
286 | set writedelay=0 | 287 | set writedelay=0 |
287 | 288 | ||
@@ -375,6 +376,7 @@ if has("autocmd") | |||
375 | autocmd FileType python setlocal keywordprg=pydoc | 376 | autocmd FileType python setlocal keywordprg=pydoc |
376 | autocmd FileType vim setlocal keywordprg=:help |. | 377 | autocmd FileType vim setlocal keywordprg=:help |. |
377 | autocmd FileType c,cpp setlocal equalprg=clang-format | 378 | autocmd FileType c,cpp setlocal equalprg=clang-format |
379 | autocmd FileType c,cpp setlocal breakat-=- | ||
378 | 380 | ||
379 | " keyboard mapping for xml alike languages | 381 | " keyboard mapping for xml alike languages |
380 | " Alt-Up : Move cursor up one tag | 382 | " Alt-Up : Move cursor up one tag |
@@ -409,6 +411,7 @@ if has("autocmd") | |||
409 | augroup END | 411 | augroup END |
410 | 412 | ||
411 | if has('nvim') | 413 | if has('nvim') |
414 | autocmd BufEnter term://* set nobuflisted | ||
412 | else | 415 | else |
413 | augroup vimonly | 416 | augroup vimonly |
414 | autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") | 417 | autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") |