/
.vimrc
60 lines (60 loc) · 2.17 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
set nocompatible
execute pathogen#infect()
set statusline=\ " One space
set statusline+=%#todo# " Set todo highlighting
set statusline+=%t " Filename
set statusline+=%* " End highlighting
set statusline+=\ %F\ \ " Full filename
set statusline+=%{strlen(&fenc)?&fenc:'none'}\ " Something
set statusline+=%{&ff}\ " unix/other encoding
set statusline+=%h%m%r " Flags
set statusline+=%#todo#
set statusline+=%y " Filetype
set statusline+=%*
set statusline+=%= " Alight to right
set statusline+=%c,%l/%L\ \ " Row column and total length
set statusline+=%P " Percent of the way through filee
if has("gui_running") || &t_Co >= 256
colorscheme quantum
set lazyredraw " Buffer screen updates (makes it more responsive)
set ttyfast
else
colorscheme neonwave
endif
"set encoding=utf-8 "Encoding displayed
set fileencoding=utf-8 "Encoding written
set showmode
set cursorline " Show a line across on the current cursor line
syntax on " Syntax highlighting
set laststatus=2 " Always display the status line
set wildmenu " Show auto complete menus
set visualbell " Use visual bell instead of beeping
" Set invisible characters
set listchars=tab:▸\ ,eol:¬,space:·
set showmatch " Show matching brackets/parenthesis
set incsearch " Search as you type
set hlsearch " Highlight searches
set ignorecase " Ignore case when searching
set smartcase " Enable case sensitivity when searching with capitals
"set nobackup " Disable backup files
"set noswapfile " Disable swap files
set autoindent " Inherit indentation from previous line
" set smartindent " Use newline autoindentation
filetype plugin indent on
" Show existing tab with 4 spaces width
set tabstop=4
" Set history to 1000. Default is 20
set history=1000
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
"set expandtab
set mouse=v
" Show line numbers
set number
" Remember last position in files:
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" associate *.nqp with perl6 filetype
au BufRead,BufNewFile *.nqp setfiletype perl6