diff --git a/nvim/qtcreator.vim b/nvim/qtcreator.vim new file mode 100644 index 0000000..044cc01 --- /dev/null +++ b/nvim/qtcreator.vim @@ -0,0 +1,135 @@ +" Setting Stuff +filetype off +filetype plugin indent on +let g:python3_host_prog = '/usr/bin/python3.9' +let g:python_host_prog = '/usr/bin/python' +let mapleader ="," +nnoremap za +set autoread +set background=dark +set backspace=indent,start,eol +set complete-=i +set completefunc=emoji#complete +set completeopt=menuone,noinsert,noselect +set directory=~/.config/nvim/tmp +set encoding=utf-8 +set foldmethod=manual +set hidden +set ignorecase +set inccommand=nosplit +set incsearch +" set iskeyword-=_ +set lazyredraw +set mouse=a +set nobackup +set nocompatible +set noerrorbells +set noexpandtab +set novisualbell +set nrformats+=alpha +set number +set path+=** +set ruler +set scrolloff=4 +set shell=zsh +set shiftwidth=4 +set shortmess+=c +set showcmd +set showmatch +set signcolumn=yes +set smartcase +set smartindent +set smarttab +set softtabstop=4 +set splitbelow +set splitright +set t_Co=256 +set tabstop=4 +set termguicolors +set timeoutlen=333 +set updatetime=300 +set wildmenu +set wildmode=list,longest,full +set wildignore+=*/.git,*/.ccls-cache +set wrap +syntax on +" Views +au BufWritePost,BufLeave,WinLeave ?* mkview +au BufWinEnter ?* silent! loadview +autocmd BufEnter * execute "chdir ".escape(expand("%:p:h"), ' ') +" Clipboard & Statusline +set clipboard=unnamedplus +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* +au BufNewFile,BufRead *.py set textwidth=80 +autocmd FileType python set colorcolumn=80 +autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o +autocmd FileType gitcommit set tabstop=4 +" Some Movement Stuff +nnoremap j gj +nnoremap k gk +inoremap gj +inoremap gk +inoremap jk +inoremap jj +" gj gk Arrow Key Functionality in Normal Mode +nnoremap gk +nnoremap gj +" Moving to Windows (Split) +nnoremap h +nnoremap j +nnoremap k +nnoremap l +autocmd BufRead,BufNewFile /home/beronthecolossus/.config/i3/* set filetype=i3 +" Mappings +nnoremap Q @@ +noremap s "_s +noremap x "_x +cmap qw wq +cmap wwq wq +vnoremap < >gv +nnoremap Y y$ +nnoremap ik$ +inoremap ikA +au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") + \| exe "normal! g'\"" | endif +" Leader bindings for some snippets and Write/Quit +:noremap c :wincmd w +:noremap h :split +:noremap v :vsp +inoremap /<++>"_c4l +inoremap w :w +inoremap ,w :w +inoremap q :q +inoremap x :x +map /<++>"_c4l +map ,, /<++>"_c4l +nnoremap meok`e +nnoremap ü o +nnoremap ğ mmO`m +noremap "_dd +inoremap "_dda +nnoremap j :m+== +nnoremap k :m-2== +nnoremap ,j :m+== +nnoremap ,k :m-2== +nnoremap q :q +nnoremap Q :q +nnoremap x :x +nnoremap w :w +nnoremap ,w :w +nnoremap W :w +vnoremap /<++>"_c4l +" Abbreviations +iab whit with +iab wiht with +iab teh the +iab hte the +iab wieght weight +iab hieght height +iab tihs this +iab doubel double +iab mian main +