diff options
author | ZyX <kp-pav@yandex.ru> | 2017-12-03 16:49:30 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-12-03 16:49:30 +0300 |
commit | c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57 (patch) | |
tree | b7e59c416d1435725c65f8952b6e55c70544d97e /runtime/vimrc_example.vim | |
parent | 62108c3b0be46936c83f6d4c98b44ceb5e6f77fd (diff) | |
parent | 27a577586eace687c47e7398845178208cae524a (diff) | |
download | rneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.tar.gz rneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.tar.bz2 rneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.zip |
Merge branch 'master' into s-dash-stdin
Diffstat (limited to 'runtime/vimrc_example.vim')
-rw-r--r-- | runtime/vimrc_example.vim | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/runtime/vimrc_example.vim b/runtime/vimrc_example.vim deleted file mode 100644 index 17cba123a8..0000000000 --- a/runtime/vimrc_example.vim +++ /dev/null @@ -1,56 +0,0 @@ -" An example for a vimrc file. -" -" To use it, copy it to -" for Unix: $HOME/.config/nvim/init.vim -" for Windows: %LOCALAPPDATA%\nvim\init.vim - -set backup " keep a backup file (restore to previous version) -set undofile " keep an undo file (undo changes after closing) -set ruler " show the cursor position all the time -set showcmd " display incomplete commands - -" Don't use Ex mode, use Q for formatting -noremap Q gq - -" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo, -" so that you can undo CTRL-U after inserting a line break. -inoremap <C-U> <C-G>u<C-U> - -" Switch syntax highlighting on -syntax on - -" Also switch on highlighting the last used search pattern. -set hlsearch - -" I like highlighting strings inside C comments. -let c_comment_strings=1 - -" Enable file type detection. -" Use the default filetype settings, so that mail gets 'textwidth' set to 72, -" 'cindent' is on in C files, etc. -" Also load indent files, to automatically do language-dependent indenting. -filetype plugin indent on - -" Put these in an autocmd group, so that we can delete them easily. -augroup vimrcEx - autocmd! - - " For all text files set 'textwidth' to 78 characters. - autocmd FileType text setlocal textwidth=78 - - " When editing a file, always jump to the last known cursor position. - " Don't do it when the position is invalid or when inside an event handler - autocmd BufReadPost * - \ if line("'\"") >= 1 && line("'\"") <= line("$") | - \ execute "normal! g`\"" | - \ endif - -augroup END - -" Convenient command to see the difference between the current buffer and the -" file it was loaded from, thus the changes you made. -" Only define it when not defined already. -if !exists(":DiffOrig") - command DiffOrig vert new | set buftype=nofile | read ++edit # | 0d_ | diffthis - \ | wincmd p | diffthis -endif |