diff options
author | Charlie Root | 2017-05-13 00:21:55 +0200 |
---|---|---|
committer | Charlie Root | 2017-05-13 00:21:55 +0200 |
commit | 17d8688a6f15648712e198f47a7a7b1cebb3fbaa (patch) | |
tree | 1d2d71eb775280230685a4da4193caf5ee514700 /vimrc-full | |
parent | 0ddb7f6ffdae9fb5c7d5936aa0992ef46c8123ca (diff) | |
download | vim-karlmarks-17d8688a6f15648712e198f47a7a7b1cebb3fbaa.tar.bz2 vim-karlmarks-17d8688a6f15648712e198f47a7a7b1cebb3fbaa.zip |
Compatibility with FreeBSD vim-nox11
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 40 |
1 files changed, 23 insertions, 17 deletions
@@ -1,5 +1,6 @@ | |||
1 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 textwidth=160 colorcolum=120 | 1 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 textwidth=160 |
2 | 2 | ||
3 | set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=) | ||
3 | set t_Co=256 | " required on some ssh sessions | 4 | set t_Co=256 | " required on some ssh sessions |
4 | " set background=light | " | 5 | " set background=light | " |
5 | " set term=xtermc | " may be required on solaris | 6 | " set term=xtermc | " may be required on solaris |
@@ -129,17 +130,6 @@ let g:airline#themes#base16#constant = 0 | |||
129 | 130 | ||
130 | " Autocompleter: =====================================. | 131 | " Autocompleter: =====================================. |
131 | " | 132 | " |
132 | " ULTISNIPS: code snippet ============================================================================================== | ||
133 | Plug 'honza/vim-snippets' " dependency of ultisnips (see below) | ||
134 | Plug 'SirVer/ultisnips' " replaces loremipsum (and many more) | ||
135 | "let g:UltiSnipsExpandTrigger = '<C-j>'| " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | ||
136 | "let g:UltiSnipsJumpForwardTrigger = '<C-j>'| " \ | ||
137 | "let g:UltiSnipsJumpBackwardTrigger = '<C-k>'| " \ | ||
138 | "let g:UltiSnipsListSnippets = '<C-`>'| " YouCompleteMe includes those, so this isn't necessary | ||
139 | "let g:UltiSnipsExpandTrigger = '<leader><tab>'| " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | ||
140 | "let g:UltiSnipsJumpForwardTrigger = '<PageDown>'| " \ | ||
141 | "let g:UltiSnipsJumpBackwardTrigger = '<PageUp>'| " \ | ||
142 | "let g:UltiSnipsListSnippets = '<leader><leader>'| " YouCompleteMe includes those, so this isn't necessary | ||
143 | " | 133 | " |
144 | 134 | ||
145 | if has("python") | 135 | if has("python") |
@@ -188,6 +178,18 @@ if has("python") | |||
188 | let g:syntastic_warning_symbol = '➔' | 178 | let g:syntastic_warning_symbol = '➔' |
189 | let g:syntastic_style_warning_symbol = '≈' | 179 | let g:syntastic_style_warning_symbol = '≈' |
190 | 180 | ||
181 | " ULTISNIPS: code snippet ============================================================================================== | ||
182 | Plug 'honza/vim-snippets' " dependency of ultisnips (see below) | ||
183 | Plug 'SirVer/ultisnips' " replaces loremipsum (and many more) | ||
184 | "let g:UltiSnipsExpandTrigger = '<C-j>'| " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | ||
185 | "let g:UltiSnipsJumpForwardTrigger = '<C-j>'| " \ | ||
186 | "let g:UltiSnipsJumpBackwardTrigger = '<C-k>'| " \ | ||
187 | "let g:UltiSnipsListSnippets = '<C-`>'| " YouCompleteMe includes those, so this isn't necessary | ||
188 | "let g:UltiSnipsExpandTrigger = '<leader><tab>'| " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | ||
189 | "let g:UltiSnipsJumpForwardTrigger = '<PageDown>'| " \ | ||
190 | "let g:UltiSnipsJumpBackwardTrigger = '<PageUp>'| " \ | ||
191 | "let g:UltiSnipsListSnippets = '<leader><leader>'| " YouCompleteMe includes those, so this isn't necessary | ||
192 | |||
191 | " JEDI: ============================================================================================================== | 193 | " JEDI: ============================================================================================================== |
192 | Plug 'davidhalter/jedi-vim' " jedi gets used to display python function signatures | 194 | Plug 'davidhalter/jedi-vim' " jedi gets used to display python function signatures |
193 | let g:jedi#completions_enabled = 0 " we do not need completions, because we have YouCompleteMe | 195 | let g:jedi#completions_enabled = 0 " we do not need completions, because we have YouCompleteMe |
@@ -198,7 +200,6 @@ if has("python") | |||
198 | " autocmd FileType python jedi.preload_module('os', 'sys', 'math') | 200 | " autocmd FileType python jedi.preload_module('os', 'sys', 'math') |
199 | " let g:pymode_options_max_line_length = 120 | 201 | " let g:pymode_options_max_line_length = 120 |
200 | " let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301' | 202 | " let g:syntastic_python_flake8_args='--ignore=F821,E302,E501,E241,E301' |
201 | |||
202 | endif | 203 | endif |
203 | 204 | ||
204 | 205 | ||
@@ -236,7 +237,10 @@ endfunction | |||
236 | autocmd ColorScheme * call ExtendColorTheme() | 237 | autocmd ColorScheme * call ExtendColorTheme() |
237 | 238 | ||
238 | 239 | ||
239 | let g:base16_shell_path="~/.config/base16-shell/scripts" | 240 | if filereadable(expand("~/.config/base16-shell/colortest")) |
241 | let g:base16_shell_path="~/.config/base16-shell/scripts" | ||
242 | endif | ||
243 | |||
240 | let base16colorspace=256 | 244 | let base16colorspace=256 |
241 | if filereadable(expand("~/.vimrc_background")) | 245 | if filereadable(expand("~/.vimrc_background")) |
242 | source ~/.vimrc_background | 246 | source ~/.vimrc_background |
@@ -251,15 +255,19 @@ endif | |||
251 | " GENERAL: | 255 | " GENERAL: |
252 | "======================================================================================================================= | 256 | "======================================================================================================================= |
253 | 257 | ||
258 | if filereadable("/bin/bash") | ||
259 | set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here | ||
260 | endif | ||
261 | |||
254 | 262 | ||
255 | "======================================================================================================================= | 263 | "======================================================================================================================= |
256 | " SPELL_CHECKING: | 264 | " SPELL_CHECKING: |
257 | "======================================================================================================================= | 265 | "======================================================================================================================= |
266 | let g:spellfile_URL='http://ftp.vim.org/vim/runtime/spell' | ||
258 | set spell | " enable spell checker | 267 | set spell | " enable spell checker |
259 | set spelllang=en,de | " languages for the spell checker | 268 | set spelllang=en,de | " languages for the spell checker |
260 | set spellsuggest=10 | " how many words will z= suggest? | 269 | set spellsuggest=10 | " how many words will z= suggest? |
261 | set thesaurus+=/home/max/.vim/thesaurus/php.txt | 270 | set thesaurus+=/home/max/.vim/thesaurus/php.txt |
262 | let g:spellfile_URL='http://ftp.vim.org/vim/runtime/spell' | ||
263 | 271 | ||
264 | set dictionary=/usr/share/dict/cracklib-small | 272 | set dictionary=/usr/share/dict/cracklib-small |
265 | set complete+=k " make default completer <C-N> respect the dictionary | 273 | set complete+=k " make default completer <C-N> respect the dictionary |
@@ -268,7 +276,6 @@ set complete+=k " make default completer <C-N> respect the dictionary | |||
268 | " SETTINGS: | 276 | " SETTINGS: |
269 | "======================================================================================================================= | 277 | "======================================================================================================================= |
270 | set noautochdir | " When on, Vim will change the current working directory | 278 | set noautochdir | " When on, Vim will change the current working directory |
271 | set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here | ||
272 | set breakindent | " Every wrapped line will continue visually indented | 279 | set breakindent | " Every wrapped line will continue visually indented |
273 | set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) | 280 | set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) |
274 | set cmdheight=2 | " sets the command line's height | 281 | set cmdheight=2 | " sets the command line's height |
@@ -278,7 +285,6 @@ set concealcursor=nc | " limits the display of concealed text to normal | |||
278 | set conceallevel=2 | " replace escaped chars by their utf-8 representation (useful for LaTeX) | 285 | set conceallevel=2 | " replace escaped chars by their utf-8 representation (useful for LaTeX) |
279 | set confirm | " asks 'do you want to save?' | 286 | set confirm | " asks 'do you want to save?' |
280 | set cpoptions+=P | " makes :w filename set the current buffer to filename | 287 | set cpoptions+=P | " makes :w filename set the current buffer to filename |
281 | set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=) | ||
282 | set hidden | " allows switiching buffers even if the current buffer contains changes (displays +) | 288 | set hidden | " allows switiching buffers even if the current buffer contains changes (displays +) |
283 | set hlsearch | " highlights all search matches (not as performant!) | 289 | set hlsearch | " highlights all search matches (not as performant!) |
284 | set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained | 290 | set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained |