diff options
author | Johannes Stolp <jstolp@fr65cs25.internal.synopsys.com> | 2016-08-12 18:06:28 +0200 |
---|---|---|
committer | Johannes Stolp <jstolp@fr65cs25.internal.synopsys.com> | 2016-08-12 18:06:28 +0200 |
commit | 7113c37a7895fbf0faf97b9b8868b6025853bc6f (patch) | |
tree | 9c3cf4a7177cc3352feb1972e8301a7b98fe3610 /.vimrc | |
parent | e27e4094041138d2430bd6f3123a4bbf677f508a (diff) | |
download | dotfiles-7113c37a7895fbf0faf97b9b8868b6025853bc6f.tar.gz dotfiles-7113c37a7895fbf0faf97b9b8868b6025853bc6f.zip |
Added vim tpope-dispatch plugin, added quickfix auto open
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -25,7 +25,8 @@ colorscheme buddy " +----------------------------+ " | Basic Settings | " +----------------------------+ -set timeoutlen=1234 " time in ms until command are interpreted +set timeoutlen=1234 " time in ms until keymap interpreted +set ttimeoutlen=1 " time in ms for key code delay, NEVER USE 0 again!!! filetype plugin indent on " enable loading indent file for filetype set ffs=unix,dos,mac " Try recognizing dos, unix, and mac line endings. @@ -41,14 +42,14 @@ set mouse=a " Enable mouse usage (all modes) set encoding=utf-8 " Set default encoding to UTF-8. set history=1000 " Sets how many lines of history VIM has to remember set tabpagemax=100 " Sets how many tabs will be opened -set scrolloff=7 " set vertical scroll distance to 7 lines +set scrolloff=2 " set vertical scroll distance to 7 lines set tabstop=4 " set Tab-length set expandtab " expand tabs to spaces set shiftwidth=4 " but an indent level is 2 spaces wide. set softtabstop=4 " <BS> over an autoindent deletes both spaces. set shiftround " rounds indent to a multiple of shiftwidth set backspace=2 -set formatoptions-=cro " disable auto-comment +autocmd BufNewFile,BufRead * setlocal formatoptions=ql " disable auto-comment set foldmethod=marker " set fold method @@ -86,6 +87,12 @@ set wildignore+=*.o,*.obj,.git,*.pyc,*~ set noerrorbells set novisualbell +" automatically open Quickfix +autocmd QuickFixCmdPost [^l]* nested cwindow +autocmd QuickFixCmdPost l* nested lwindow +nnoremap <leader>m :silent make!\|redraw!\|cc<CR> +nnoremap <leader>g :silent grep! -R \|redraw!\|cc + " +----------------------------+ " | Source Extrenal Files | " +----------------------------+ |