-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
82 lines (62 loc) · 1.26 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
set nocompatible
"set encoding=utf-8
"set fileencodings=utf-8,gbk
"set ambiwidth=double
"set gfn=Consolas:h12:cANSI
"set guioptions-=T "get rid of toolbar
"set guioptions-=r "get rid of scrollbars
"Color scheme
set term=screen-256color-bce
let g:solarized_termcolors=256
set t_Co=256
set background=dark
colorscheme default
"showing line numbers and length
set number
set tw=100
set nowrap
set fo-=t
"load pathogen
filetype off
call pathogen#infect()
call pathogen#helptags()
"enable syntax highlighting
filetype off
filetype plugin indent on
syntax on
"bind leader key
let mapleader=","
"removes last search highlight
noremap <C-n> :nohl<CR>
vnoremap <C-n> :nohl<CR>
inoremap <C-n> :nohl<CR>
"easier moving tabs
map <Leader>n <esc>:tabprevious<CR>
map <Leader>m <esc>:tabnext<CR>
"map sort function to a key
vnoremap <Leader>s :sort<CR>
"Easier moving of code blocks.
vnoremap < <gv
vnoremap > >gv
"code folding
set foldmethod=indent
set foldlevel=99
"set spell
set history=1000
set undolevels=700
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smarttab
set expandtab
set autoindent
set hlsearch
set incsearch
set ignorecase
set smartcase
set nobackup
set nowritebackup
set noswapfile
map <F3> :MiniBufExplorer<cr>
"NERD TREE SETUP
map <F2> :NERDTreeToggle<cr>