how is your vim setup look like fämälämäzöids?
also share .vimrc if you want mine isset guifont=inconsolata:h11
set t_Co=256
set background=dark
set tabstop=4
set shiftwidth=4
set smartindent
set number
set cursorline
set showcmd
set showmatch
set incsearch
set hlsearch
colorscheme gruvbox
syntax on
maybe rudamentary but it is good enough tbrqhwyf
>>60140363
Pretty basic because I only use Vim for quick edits." Allow project specific configs
set exrc
set secure
" Tab configuration
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab
" Ruler
set colorcolumn=120
highlight ColorColumn ctermbg=darkred
" Pathogen
execute pathogen#infect()
" Color scheme
colorscheme heroku
colors heroku
" Syntax
syntax on
filetype plugin indent on
" Gutter
set number
" Remove some UI bloat
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=L
" Keyboard shortcuts
map <C-O> :browse confirm e<CR>
set number
syntax on
let mapleader = " "
>>60140862
why not used vim for more?
>>60140862
>UI bloat
>vim
What are you doing?
it's easy, I use nvi.
>>60144770
>nigger vi
get out of my thread
It looks like visual studio code because I actually get work done instead of circle jerking in a terminal to write fizz buzzers and prime sieves.
>Inb4 comments on cursor blinking
gruvbox master race
>>60141998
Because it's a clusterfuck of an editor.
>>60142067
I used to use gVIM because I wanted to use a different font in my terminal and when editing text but now I use the same so it no longer applies.
>>60140363
A lot of this I took from "Learn Vimscript the hard way" which I'd strongly recommend" macro for quickly switching to ~/.vimrc file
:nnoremap <leader>ev :vsplit $MYVIMRC<cr>
" macro to quickly source ~/.vimrc file so you don't need
" to restart vim after adding a macro (such as with <leader>ev macro)
nnoremap <leader>sv ma<cr>:silent! source $MYVIMRC<cr>'azz
" macro to surround any selected text with double quotes
" doesn't work with block selections (but why would you put
" quotes around a block anyways?)
vnoremap <leader>" di""<esc>p
" add {...} block around block of visually selected text
" only works in visual line or normal mode
vnoremap <leader>{ c{<cr>}<esc>pkva{=
nnoremap <leader>{ cc{<cr>}<esc>pkva{=
" quick exit out of insert mode
inoremap jk <esc>
" disable normal esc function so you can learn jk
inoremap <c-[> <nop>
" Re-enable <esc> instead of jk when jk must be used (ie "Dijkstra")
nnoremap <leader>k :iunmap <c-v><c-[><cr>:iunmap jk<cr>
" Macros for easily adding comments
autocmd FileType cpp vnoremap <buffer> <leader>c :s!\(^\s*\)!\1// !<cr>:noh<cr>
autocmd FileType cpp nnoremap <buffer> <leader>c I// <esc>
Some of this could use some refactoring. I wrote half of these yesterday.
I know vi is pronounced "vee eye", but is vim "vee eye em"?
>>60147117
Just pronounce it like "him" but with a v instead of h
>>60140363set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
"My plugins
Plugin 'sjl/badwolf'
Plugin 'scrooloose/nerdtree'
"Plugin 'itchyny/lightline.vim'
Plugin 'sheerun/vim-wombat-scheme'
"Plugin 'vim-airline/vim-airline'
"Plugin 'vim-airline/vim-airline-themes'
"Plugin 'Lokaltog/powerline-fonts'
"Plugin 'powerline/powerline'
Plugin 'itchyny/lightline.vim'
"Plugin 'Valloric/YouCompleteMe'
call vundle#end()
filetype plugin indent on
syntax on
set number
set undofile
set laststatus=2
if !has('gui_running')
set t_Co=256
endif
set encoding=utf-8
scriptencoding utf-8
set exrc
set secure
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab
set colorcolumn=120
no <down> ddp
no <left> <Nop>
no <right> <Nop>
no <up> ddkP
ino <down> <Nop>
ino <left> <Nop>
ino <right> <Nop>
ino <up> <Nop>
vno <down> <Nop>
vno <left> <Nop>
vno <right> <Nop>
vno <up> <Nop>
ino <Esc> <C-c>
color badwolf
set cursorcolumn
set cursorline
set t_Co=256
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': { 'left': [['mode', 'paste'], ['fugitive'], ['filename', 'modified'], ['readonly']] },
\ 'component': {
\ 'readonly': '%{&readonly?"":""}',
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
\ 'fugitive': '%{(exists("*fugitive#head") && ""!=fugitive#head())?" " . fugitive#head():""}'
\ },
\ 'component_visible_condition': {
\ 'readonly': '(&filetype!="help"&& &readonly)',
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '', 'right': ''}
\ }
set noshowmode
>>60147256
Wow I have a lot of things commented out. I need to clean up my .vimrc.
>>60140363" BASIC SETUP:
" enter the new millenium
set nocompatible
" enable plugins
filetype plugin on
" PERSONAL MAPPINGS:
" save file
nnoremap <F2> :w<CR>
inoremap <F2> <ESC>:w<CR>i
" exit
nnoremap <F3> :q<CR>
inoremap <F3> <ESC>:q<CR>
" leader
let mapleader = "¿"
" localleader
let maplocalleader = "\\"
" edit vimrc file
nnoremap <leader>ev :vsplit $MYVIMRC<CR>
" source vimrc file
nnoremap <leader>sv :source $MYVIMRC<CR>
" TEXT AUTOCORRECTION AND EXPANSIONS:
iabbrev teh the
iabbrev waht what
iabbrev aslo also
iabbrev @@ --<CR>[email protected]<CR>--
" TEXT SNIPPETS:
" Read an HTML template and move cursor to title
nnoremap <leader>html :-1read $HOME/.vim/snippets/skeleton.html<CR>3jwf>a
" NOW WE CAN:
" - <leader>html for HTML snippet
" - can be used to create more snippets
" COSMETIC CHANGES:
" enable syntax highlightening
syntax enable
" colorscheme
colorscheme basal
" toolbar
set ruler
" line wrap
set wrap
" when wrapping, don't break words
set linebreak
" indent using previously indented line as example
set autoindent
" indent C-like syntax
set smartindent
" set line number for current line and relative number to the rest
"set number relativenumber
" TAB COMPLETION:
" enable spellchecking
"set spell
" match dictionary words for completion
set complete+=kspell
" FINDING FILES:
" Search down into subfolders
" Provides tab-completion for all file-related tasks
set path+=**
" Display all matching files when we tab complete
set wildmenu
" NOW WE CAN:
" - Hit tab to :find by partial match
" - use * to make it fuzzy
" - :b lets you autocomplete any buffer
" TAG JUMPING:
" - This doesn't help if you want a visual list of tags
" Create the 'tags' file (may need to install ctags first)
command! MakeTags !ctags -R .
" NOW WE CAN:
" - Use ^] to jump to tag under cursor
" - Use g^] for ambiguous tags
" - Use ^t to jump back up the tag stack
Too large, splitting
>>60147685
cont." AUTOCOMPLETE:
" Already set with the tags file
" The good stuff is documented in |ins-completion|
" HIGHLIGHTS:
" - ^x^n for JUST this file
" - ^x^f for filenames (woks with our path trick!)
" - ^x^] for tags only
" - ^n for anything specified by the 'complete' option
" - Use ^n and ^p to go back and forth in the suggestion list
" ELEMENT INSPECTOR:
" Show syntax highlighting groups for word under cursor
" Use ctrl-shift-p to reveal the syntax groups to which the element belongs
nmap <C-S-P> :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
" FILE BROWSING:
" Tweaks for browsing
let g:netrw_banner=0 " disable annoying banner
let g:netrw_browse_split=4 " open in prior window
let g:netrw_altv=1 " open splits to the right
let g:netrw_liststyle=3 " tree view
let g:netrw_list_hide=netrw_gitignore#Hide()
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
" NOW WE CAN:
" - :edit a folder to open a file browser
" - <CR>/c/t to open in an h-split/v-split/tab
" - check |netrw-browse-maps| for more mappings
>>60140363
>>60147256
>>60140862
>>60140876
>syntax on
>>60140363
Pretty basicsyntax off
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set shiftwidth=4
set expandtab
set number
set showmatch
set incsearch
>>60148133
What's wrong with that?
>>60148531
Probably C-fag mentality.
"Hurrr, you made things easier for yourself, you're dumb lol.
Look how smart I am for doing things the hard way!"
here's my vim
>>60148589
>C-fag mentality
>doing things the hard way
you can only chose one
>>60148694
"I don't understand it, so it must be harder/useless"
>>60148620
Is this VS code?
>>60148865
VS code with Operator Mono and some text theme i forgot the name of
>>60140363
dude what language is that? genuine, if stupid, questionsyntax on
set cindent
set mouse=a
colo default
autocmd FileType javascript colo elflord
autocmd BufEnter *.html,*.ejs colo delek
autocmd BufNewFile,BufRead *.ejs set filetype=html
noremap <Up> <nop>
noremap <Down> <nop>
noremap <Left> <nop>
noremap <Right> <nop>
filetype plugin indent on
autocmd FileType html setlocal shiftwidth=2 tabstop=2
autocmd FileType css setlocal shiftwidth=2 tabstop=2
autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType php setlocal shiftwidth=2 tabstop=2
autocmd Filetype python setl sw=5 sts=5 et
autocmd Filetype java setl sw=5 sts=5 et
autocmd Filetype scss setl sw=5 sts=5 et
set hidden
set incsearch
set textwidth=70
nmap <S-Enter> O<Esc>j
nmap <CR> o<Esc>k
let g:netrw_liststyle=3
map <C-n> :NERDTreeToggle<CR>
:au Filetype json setl sw=5 sts=5 tabstop=5 et
augroup json_autocmd
autocmd!
autocmd FileType json set autoindent
autocmd FileType json set formatoptions=tcq2l
autocmd FileType json set textwidth=78 shiftwidth=4
autocmd FileType json set softtabstop=4 tabstop=4
autocmd FileType json set expandtab
autocmd FileType json set foldmethod=syntax
augroup END
execute pathogen#infect()
>>60149500
>template
>typename
C++
>>60148133
KEK