-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.vim
More file actions
59 lines (48 loc) · 1.04 KB
/
config.vim
File metadata and controls
59 lines (48 loc) · 1.04 KB
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
if $VisualStudioVersion == ""
filetype plugin indent on
let &packpath .= ',' .. expand('<sfile>:p:h') .. "/vimfiles"
syntax on
set ruler
set enc=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf8,prc
set autoread
" Indendation
set smarttab
set smartindent
" C Language
set cinoptions=(0,W4
" Rust language
let g:rustfmt_autosave = 1
" GUI settings
if has("gui_running")
set guifont=Lucida_Console:h11
set guioptions-=m
set guioptions-=T
set guioptions-=r
set lines=50 columns=150
endif
" Schema
colorscheme nord
set termguicolors
" Status bar
set laststatus=2
set noshowmode
let g:lightline = {
\ 'colorscheme': 'nord',
\ }
endif
set number
set autoindent
set expandtab
set tabstop=4
set shiftwidth=4
" More ergonomic to-end-of-line for Finnish keyboard
nmap - $
vmap - $
omap - $
" Shortcuts for window movement
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l