-
-
Save zonyitoo/4168375 to your computer and use it in GitHub Desktop.
vimrc for servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax enable | |
filetype plugin indent on | |
set bg=dark | |
" Stop backup files | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
" better search | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartcase | |
set history=1000 | |
set nocompatible | |
set number " show linenumber | |
set confirm " prompt when existing from an unsaved file | |
set showcmd " Show (partial) command in status line | |
set backspace=indent,eol,start " More powerful backspacing | |
" When editing a file, always jump to the last cursor position | |
autocmd BufReadPost * | |
\ if ! exists("g:leave_my_cursor_position_alone") | | |
\ if line("'\"") > 0 && line ("'\"") <= line("$") | | |
\ exe "normal g'\"" | | |
\ endif | | |
\ endif | |
" eggcache vim | |
:command W w | |
:command WQ wq | |
:command Wq wq | |
:command Q q | |
:command Qa qa | |
:command QA qa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment