vim

The purpose of this document is to explain how to use vim.

vimrc

syntax on colorscheme jgs set number set nowrap autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o nnoremap <CR> :noh<CR><CR> filetype plugin indent on " show existing tab with 4 spaces width set tabstop=4 " when indenting with '>', use 4 spaces width set shiftwidth=4 " On pressing tab, insert 4 spaces set expandtab

Delete range of lines (10-190)

:10,290d

Theme vim with JGS theme

" Vim color file for JGS theme " Based on tortus theme " Neutral background color " Installation: copy this file to ~/.vim/colors/jgs.vim directory and add " "colorscheme jgs" to your ~/.vimrc file set background=dark hi clear if exists("syntax_on") syntax reset endif "colorscheme default let g:colors_name = "jgs" " hardcoded colors : " GUI Comment : #80a0ff = Light blue " GUI highlight Normal guifg=Grey80 guibg=Black highlight Search guifg=Black guibg=Orange gui=bold highlight Visual guifg=Black guibg=DarkGrey gui=NONE highlight Cursor guifg=Black guibg=Green gui=bold highlight Special guifg=Orange highlight Comment guifg=#606080 highlight StatusLine gui=NONE guifg=White guibg=#204040 highlight StatusLineNC gui=NONE guifg=#666666 guibg=#102020 highlight Statement guifg=Yellow gui=NONE highlight VertSplit gui=bold guifg=Grey25 guibg=#102020 highlight FoldColumn gui=bold guifg=White guibg=Black highlight Type gui=NONE highlight Typedef guibg=black guifg=#00ff8c highlight StorageClass guibg=Black guifg=#a0db35 highlight Folded guibg=black guifg=green highlight BuildInFunction guibg=Black guifg=#00d5d5 highlight Sysvars guibg=black guifg=white highlight Movement guibg=black guifg=green highlight Continue guifg=#646423 highlight Operator guibg=black guifg=#c84600 highlight Exception guibg=black guifg=Orange highlight String guibg=#181818 guifg=lightred highlight CursorLine guibg=#252525 highlight MatchParen guibg=purple guifg=yellow highlight Pmenu guibg=grey20 guifg=white highlight PmenuSel guibg=green guifg=black highlight WildMenu guibg=cyan guifg=black " Console highlight Normal ctermfg=LightGrey highlight Search ctermfg=Black ctermbg=green cterm=NONE highlight Visual cterm=reverse highlight Cursor ctermfg=Black ctermbg=Green cterm=bold highlight Special ctermfg=DarkRed highlight Constant ctermfg=brown highlight String ctermfg=brown highlight Operator ctermfg=red highlight Comment ctermfg=darkgray highlight StatusLine ctermfg=black ctermbg=lightgrey cterm=NONE highlight StatusLineNC ctermfg=lightgrey ctermbg=darkgrey cterm=NONE highlight VertSplit ctermfg=lightgrey ctermbg=DarkGrey cterm=bold highlight Statement ctermfg=Yellow cterm=NONE highlight Exception ctermfg=Yellow highlight FoldColumn ctermfg=White cterm=bold highlight Type ctermfg=darkgreen cterm=NONE highlight Typedef ctermfg=darkgreen cterm=NONE highlight StorageClass ctermfg=darkgreen cterm=NONE highlight Folded ctermfg=green highlight Movement ctermfg=green highlight BuildInFunction ctermfg=Cyan highlight Sysvars ctermfg=white highlight link Continue Statement highlight CursorLine ctermbg=Darkblue highlight PreProc ctermfg=magenta highlight Underlined ctermbg=darkmagenta ctermfg=magenta highlight Debug ctermfg=magenta " only for vim 5 if has("unix") if v:version<600 highlight Normal ctermfg=Grey cterm=NONE guifg=Grey80 guibg=Black gui=NONE highlight Search ctermfg=Black ctermbg=Red cterm=bold guifg=Black guibg=Red gui=bold highlight Visual ctermfg=Black ctermbg=yellow cterm=bold guifg=Grey25 gui=bold highlight Special ctermfg=LightBlue cterm=NONE guifg=LightBlue gui=NONE highlight Comment ctermfg=Cyan cterm=NONE guifg=LightBlue gui=NONE endif endif

[Edit]