aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMax Christian Pohle2016-10-13 17:14:45 +0200
committerMax Christian Pohle2016-10-13 17:14:45 +0200
commit04194c29e8b9b887363e13bec2bdefc15fdbd37b (patch)
treecb3ba554208ce3a202616a493e16ac02689a2686 /vimrc
parent52349625ead61bfba78a67c79ab8305710c926f4 (diff)
downloadvim-karlmarks-04194c29e8b9b887363e13bec2bdefc15fdbd37b.tar.bz2
vim-karlmarks-04194c29e8b9b887363e13bec2bdefc15fdbd37b.zip
make Ctrl-Backspace delete a word in insert mode
added most important of all command :viusage to the shortcuts.txt (which is my custom and less comprehensive version of viusage) added gitignore file from github as a reference.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc18
1 files changed, 16 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index 1cf91c1..4e56ac4 100644
--- a/vimrc
+++ b/vimrc
@@ -59,7 +59,7 @@ let g:airline_theme='base16' | " specifies which colors
59" Additional: ========================================. 59" Additional: ========================================.
60Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages 60Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages
61Plug 'taglist-plus' " quick code navigator 61Plug 'taglist-plus' " quick code navigator
62nnoremap <C-l> :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L 62nnoremap <leader>l :TlistToggle<CR>| " bind TagList to Hotkey Ctrl+L
63 63
64" Autocompleter: =====================================. 64" Autocompleter: =====================================.
65Plug 'Valloric/MatchTagAlways' 65Plug 'Valloric/MatchTagAlways'
@@ -86,6 +86,11 @@ let g:jedi#completions_enabled = 0 " we do not need completio
86let g:jedi#show_call_signatures = 1 " which sadly does not support signatures like jedi 86let g:jedi#show_call_signatures = 1 " which sadly does not support signatures like jedi
87let g:jedi#show_call_signatures_delay = 0 87let g:jedi#show_call_signatures_delay = 0
88let g:jedi#auto_vim_configure = 0 88let g:jedi#auto_vim_configure = 0
89let g:pymode_rope = 0 " https://github.com/davidhalter/jedi-vim/issues/163
90" autocmd FileType python jedi.preload_module('os', 'sys', 'math')
91" let g:pymode_options_max_line_length = 120
92" let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301'
93
89Plug 'SirVer/ultisnips' " replaces loremipsum (and many more) 94Plug 'SirVer/ultisnips' " replaces loremipsum (and many more)
90Plug 'honza/vim-snippets' " dependency of ultisnips 95Plug 'honza/vim-snippets' " dependency of ultisnips
91" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. 96" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
@@ -132,6 +137,12 @@ vnoremap > >gv
132nnoremap <C-Tab> :bn<CR>| " lets one use CTRL+Tab to switch between buffers 137nnoremap <C-Tab> :bn<CR>| " lets one use CTRL+Tab to switch between buffers
133nnoremap <C-S-Tab> :bp<CR>| " use CTRL+Shift+Tab to switch to previous buffers 138nnoremap <C-S-Tab> :bp<CR>| " use CTRL+Shift+Tab to switch to previous buffers
134 139
140
141inoremap <C-Backspace> <C-W>| " Bind CTRL+Backspace to vims version (CTRL+W) in insert mode
142
143
144
145
135" settings ============================================. 146" settings ============================================.
136" set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here 147" set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here
137set noshowmode | " because we are using some powerline derivat 148set noshowmode | " because we are using some powerline derivat
@@ -160,6 +171,7 @@ set spell spelllang=en,de | " enable spell checker
160set nostartofline | " when scrolling: do not move the cursor to column 1 171set nostartofline | " when scrolling: do not move the cursor to column 1
161set thesaurus+=/home/max/.vim/thesaurus/php.txt 172set thesaurus+=/home/max/.vim/thesaurus/php.txt
162set hlsearch | " highlights all search matches (not as performant!) 173set hlsearch | " highlights all search matches (not as performant!)
174set textwidth=100 | " line length (80 used to be default, but...)
163 175
164 176
165 177
@@ -214,7 +226,8 @@ if has("autocmd")
214 226
215 augroup set_window_title " { 227 augroup set_window_title " {
216 " autocmd BufWinEnter quickfix setl statusline=%t 228 " autocmd BufWinEnter quickfix setl statusline=%t
217 autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]" 229 " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]"
230 autocmd BufEnter * let &titlestring = "%t|".$USER."@".hostname().":%{expand(\"%:~:.:h\")}%=%y"
218 231
219 232
220 " set window title for screen(3) 233 " set window title for screen(3)
@@ -223,6 +236,7 @@ if has("autocmd")
223 set t_fs=\ 236 set t_fs=\
224 endif 237 endif
225 if &term == "screen" || &term == "xterm" 238 if &term == "screen" || &term == "xterm"
239 set titlelen=40
226 set title 240 set title
227 endif 241 endif
228 augroup END 242 augroup END
..