let fortran_free_source=1
“let fortran_fold=1
“let fortran_fold_conditionals=1
“let fortran_fold_multilinecomments=1
“let fortran_more_precise=1
“let fortran_do_enddo=1
set background=dark
set ruler ” show the line number on the bar
“set more ” use more prompt
“set autoread ” watch for file changes
set hidden
set noautowrite ” don’t automagically write on :next
set lazyredraw ” don’t redraw when don’t have to
set showmode
set showcmd
set nocompatible ” vim, not vi
“set autoindent smartindent ” auto/smart indent
set smarttab ” tab and backspace are smart
set tabstop=2 ” 6 spaces
set shiftwidth=2
set scrolloff=5 ” keep at least 5 lines above/below
set sidescrolloff=5 ” keep at least 5 lines left/right
set history=200
set backspace=indent,eol,start
set linebreak
set cmdheight=1 ” command line two lines high
set undolevels=1000 ” 1000 undos
set updatecount=100 ” switch every 100 chars
“set complete=.,w,b,u,U,t,i,d ” do lots of scanning on tab completion
“set ttyfast ” we have a fast terminal
set noerrorbells ” No error bells please
set shell=bash
set fileformats=unix
set ff=unix
“filetype on ” Enable filetype detection
“filetype indent on ” Enable filetype-specific indenting
“filetype plugin on ” Enable filetype-specific plugins
“set wildmode=longest:full

“set wildmenu ” menu has tab completion
“let maplocalleader=’,’ ” all my macros start with ,
set laststatus=2
set ignorecase

” searching
set incsearch ” incremental search
set hlsearch ” highlight the search
set showmatch ” show matching bracket
set diffopt=filler,iwhite ” ignore all whitespace and sync
iab xdate <c-r>=strftime(“%d/%m/%y %H:%M:%S”)<cr>
iab xme <c-r>=”Manmeet”<cr>
iab xline <c-r>=printf(‘line no: %d’, line(‘.’))<cr>
iab xfile <c-r>=expand(“%:t”)<cr>

” backup
“set backup
“set backupdir=~/.vim_backup
“set viminfo=%100,’100,/100,h,\”500,:100,n~/.viminfo
“set viminfo=’100,f1

“Show autocomplete menus.
set complete-=k complete+=k ” Add dictionary search (as per dictionaryoption)
set wildmode=list:full
set wildmenu
au BufRead,BufNewFile *.ncl set dictionary=~/.vim/dictionary/ncl.dic


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s