Created
August 18, 2015 10:41
-
-
Save Birch-san/8832d16780d66493b7ef to your computer and use it in GitHub Desktop.
Awesome vim syntax highlighting
This file contains hidden or 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
"The following three lines map Ctrl+s to save in vi. You can comment | |
"these out, it has nothing to do with syntax highlighting or colors. | |
" optional lines to turn on pressing F2 to toggle paste mode | |
noremap <F2> :set invpaste paste?<CR>i | |
set pastetoggle=<F2> | |
:nmap <c-s> :w<CR> | |
:imap <c-s> <Esc>:w<CR>a | |
:imap <c-s> <Esc><c-s> | |
syntax on | |
set background=dark | |
set hlsearch | |
set nu | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set cursorline | |
filetype on | |
filetype plugin indent on | |
au BufReadPost *.twig colorscheme koehler | |
au BufReadPost *.css colorscheme slate | |
au BufReadPost *.js colorscheme slate2 | |
au BufReadPost *.py colorscheme molokaiyo | |
au BufReadPost *.html colorscheme monokai | |
au BufReadPost *.java colorscheme monokai | |
" au BufReadPost *.php colorscheme monokai | |
" Default line highlighting for unknown filetypes | |
hi String ctermfg=140 | |
hi CursorLine ctermbg=235 | |
hi CursorLine guibg=#D3D3D3 cterm=none | |
autocmd BufReadPost * | |
\ if line("'\"") > 1 && line("'\"") <= line("$") | | |
\ exe "normal! g`\"" | | |
\ endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full credit to:
https://github.com/sentientmachine/erics_vim_syntax_and_color_highlighting
Which provides the other half of the installation instructions (contents to unpack into
.vim
folder)