My .vimrc

syntax on
set wrap                       "wrap long lines
set expandtab                  "expand tab into spaces
set noautoindent               "auto indent text
set nocin                      "no c-auto indent
set ruler                      "show cursor coordinates
set backspace=indent,eol,start "backspacing over auto indent, line breaks, start of insert
set incsearch                  "incremental search
set hlsearch                   "highlight search
set tabstop=4                  "set num characters for a tab
set softtabstop=4              "Number of spaces that a <Tab> counts for while editing
set shiftwidth=4               "num spaces with reindent operations (<< and >>) and C-style indentation.
set ignorecase                 "ignore case in searches
set sm                         "show matching braces/parenthesis
set noerrorbells               "disable error bell
set winminheight=0             "set minimum window height
set winminwidth=0              "set minimum window width
set nu                         "show line numbers


" Remove trailing blanks upon saving
autocmd BufWritePre * :%s/\s\+$//e

colorscheme darkblue

"move to top tab
map <C-J> <C-W>j<C-W>

"move to bottom tab
map <C-K> <C-W>k<C-W>

"move to left tab
map <C-H> <C-W>h<C-W>

"move to right tab
map <C-L> <C-W>l<C-W>

"vsplit
map <C-O> <C-W>v<C-W>

"resize horizontal splits
map - <C-W>-
map = <C-W>+

"resize vertical splits
map <c-n> <c-w><
map <c-m> <c-w>>

"Toggle hlsearch with F5
map <F5> :set hls!<bar>set hls?<CR>

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 )

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

Follow

Get every new post delivered to your Inbox.