Tested some settings.

This commit is contained in:
Sebastian 2019-10-14 21:09:41 +02:00
parent 6ca7e2cf34
commit 0f5ecf0587

View file

@ -63,14 +63,14 @@ Plugin 'ervandew/supertab'
call vundle#end() " required call vundle#end() " required
filetype plugin indent on " required filetype plugin indent on " required
" To ignore plugin indent changes, instead use: " To ignore plugin indent changes, instead use:
"filetype plugin on filetype plugin on
"
" Brief help " Brief help
" :PluginList - lists configured plugins " :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ " see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line " Put your non-Plugin stuff after this line
@ -114,9 +114,9 @@ filetype plugin indent on
augroup vimrcEx augroup vimrcEx
autocmd! autocmd!
" When editing a file, always jump to the last known cursor position. " " When editing a file, always jump to the last known cursor position.
" Don't do it for commit messages, when the position is invalid, or when " " Don't do it for commit messages, when the position is invalid, or when
" inside an event handler (happens when dropping a file on gvim). " " inside an event handler (happens when dropping a file on gvim).
autocmd BufReadPost * autocmd BufReadPost *
\ if &ft != 'gitcommit' && line("'\"") > 0 && line("'\"") <= line("$") | \ if &ft != 'gitcommit' && line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" | \ exe "normal g`\"" |
@ -134,7 +134,7 @@ augroup END
" When the type of shell script is /bin/sh, assume a POSIX-compatible " When the type of shell script is /bin/sh, assume a POSIX-compatible
" shell for syntax highlighting purposes. " shell for syntax highlighting purposes.
let g:is_posix = 1 "let g:is_posix = 1
" Softtabs, 4 spaces " Softtabs, 4 spaces
set tabstop=4 set tabstop=4
@ -149,18 +149,18 @@ set list listchars=tab:»·,trail:·,nbsp:·
set nojoinspaces set nojoinspaces
" Use The Silver Searcher https://github.com/ggreer/the_silver_searcher " Use The Silver Searcher https://github.com/ggreer/the_silver_searcher
if executable('ag') "if executable('ag')
" Use Ag over Grep " " Use Ag over Grep
set grepprg=ag\ --nogroup\ --nocolor " set grepprg=ag\ --nogroup\ --nocolor
" Use ag in fzf for listing files. Lightning fast and respects .gitignore " " Use ag in fzf for listing files. Lightning fast and respects .gitignore
let $FZF_DEFAULT_COMMAND = 'ag --literal --files-with-matches --nocolor --hidden -g ""' " let $FZF_DEFAULT_COMMAND = 'ag --literal --files-with-matches --nocolor --hidden -g ""'
if !exists(":Ag") " if !exists(":Ag")
command -nargs=+ -complete=file -bar Ag silent! grep! <args>|cwindow|redraw! " command -nargs=+ -complete=file -bar Ag silent! grep! <args>|cwindow|redraw!
nnoremap \ :Ag<SPACE> " nnoremap \ :Ag<SPACE>
endif " endif
endif "endif
" Make it obvious where 80 characters is " Make it obvious where 80 characters is
set textwidth=80 set textwidth=80
@ -174,7 +174,7 @@ set numberwidth=5
" will insert tab at beginning of line, " will insert tab at beginning of line,
" will use completion if not at beginning " will use completion if not at beginning
set wildmode=list:longest,list:full "set wildmode=list:longest,list:full
function! InsertTabWrapper() function! InsertTabWrapper()
let col = col('.') - 1 let col = col('.') - 1
if !col || getline('.')[col - 1] !~ '\k' if !col || getline('.')[col - 1] !~ '\k'
@ -187,14 +187,14 @@ inoremap <Tab> <C-r>=InsertTabWrapper()<CR>
inoremap <S-Tab> <C-n> inoremap <S-Tab> <C-n>
" Open new split panes to right and bottom, which feels more natural " Open new split panes to right and bottom, which feels more natural
set splitbelow "set splitbelow
set splitright "set splitright
" Quicker window movement " Quicker window movement
nnoremap <C-j> <C-w>j "nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k "nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h "nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l "nnoremap <C-l> <C-w>l
" Autocomplete with dictionary words when spell check is on " Autocomplete with dictionary words when spell check is on
set complete+=kspell set complete+=kspell