Previously >About Vim Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X.
>Why Vim Vim is rock stable and is continuously being developed to become even better. Among its features are: #persistent, multi-level undo tree #extensive plugin system #support for hundreds of programming #languages and file formats #powerful search and replace #integrates with many tools.
>I want to use Vim but I don't know the keybindings/Nano is easier #Learning them is easy and you only actually need a select few: navigation, search, b, i, w, :line, v and a few more #Install Vim and get started with the built in vim tutor: vimtutor - very easy 7 lessons, takes you 30 minutes and you are there.
>I want to use mouse and click While you can certainly do them in Vim, you will become too lazy to take your hand off the keyboard once you get comfortable with Vim.
>Vim is just a text editor True, but you can scale Vim to be the IDE you want it to be: C/C++, Java, C#, Python, Haskell, Javascript - anything you like.
Neovim users and potential new users are also welcome.
Actually it uses mucomplete and tiny-line (you gotthe others right though)
mucomplete is basically as good as YCM, but doesn't need to be compiled, and tiny-line is basically a smaller air-line.
Ryder James
Turns out the 220 character limit has never been fixed and sgr mouse doesn't do shit. The only solution is to use nvim (which isn't correctly compatible with many plugins for now). What a fucking meme. If only emacs wasn't significantly worse in every respect I'd switch to it in a heartbeat.
Luis Phillips
Emacs with non-joke keybinds W H E N? Emacs with non-garbage interactions (lack of lopen, copen, "popup" windows (see: popwin, which is a dysfunctional hack) thrashing your window setup and destructively replacing your windows) W H E N ? Tired of this vim crap.
Thomas Phillips
I remember when vim was just a text editor
David Richardson
Anyone that uses nerdtree when netrw already exists should kill themselves
Ryan Mitchell
so... never?
Dylan Wilson
How do I make airline not look like shit in 2017? Do I still need to patch my fonts or what the fuck?
William Brown
yes >vim lmao
Aiden Taylor
airline themes
Josiah Campbell
It's buggy unless you patch your fonts.
Parker Smith
Why hasn't someone made emacs, without the pretense to be a text editor? In other words, a kind of platform-agnostic DE-in-a-box. Major modes are basically programs anyway, that they open a DE-provided text editing form to perform their operation (e.g. org-mode would open the refile in such a form) is just a coincidence. It can be viewed as an approach similar to KDE embedding kate to let you rename files in dolphin. It would be significantly more powerful than emacs, and wouldn't have to deal with the garbage and pitfalls that come with being an actual DE and dealing with mainstream programs and their lack of standard-compliance. It would also be an opportunity to fix the crippling flaws that emacs has kept during all these years.
Jaxson Thompson
I'm not an emacs fag. However I intend to fork neovim (and some plutins) into a gtk IDE
Christopher Lewis
I'm puking already. Kill yourself inbred.
Thomas Nguyen
Are there any *nix text editors that use Windows standard key combinations (e.g. ^C, ^V, Ctrl-arrow key)? It would be nice to have tabbed viewing too with ^W to close ^Tab to change and the other common ones.
Juan Ross
Yes, it's called suicide.
John Cooper
Complete noob here, do I need anything besides "syntax on" to enable syntax highlighting for python?
Nicholas Scott
No you shouldnt. Theres packaged highlighting for some languages like python. Make sure your files, in general, are using standard extensions. I.e., .py for python
Andrew Butler
When I finish be sure to stream your suicide over jewtube. I will jerk off to it
Austin Davis
well that's an option, but I'd like to write programs in *this* place of existence, and not in my own blood
Basic vimrc I got from youtube. You stop won't be needing many plugins if you like this.
" COSMETIC CHANGES:
" colorscheme colorscheme rdark-terminal " toolbar set ruler
" BASIC SETUP: " enter the new millenium set nocompatible " enable syntax syntax enable " enable plugins filetype plugin on
" 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 " THINGS TO CONSIDER: " - :b lets you autocomplete any buffer
" TAG JUMPING: " 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 " THINGS TO CONSIDER: " - This doesn't help if you want a visual list of tags
" AUTOCOMPLETE: " 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 " NOW WE CAN: " - Use ^n and ^p to go back and forth in the suggestion list
" 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 " - /c/t to open in an h-split/v-split/tab " - check |netrw-browse-maps| for more mappings
" SNIPPETS: " Read an HTML template and move cursor to title nnoremap ,html :-1read $HOME/.vim/snippets/skeleton.html3jwf>a
" NOW WE CAN: " - ,html for HTML snippet " - can be used to create more snippets
Thomas Hall
In a previous thread someone was asking for a way to search and replace in an entire project, directory-wise.
The condensed solution was :vimgrep pattern **/* :cfdo %s/pattern/replaced_pattern/gc
Is this correct? And any idea on how can I map this to a key and add it to my vimrc?
Colton Mitchell
>JUST this file >JUST
Easton Smith
gg42, 42gg, 42G or :42
?
Colton Wilson
do you put your gitlab on your resume? I want to make the switch but github is more recognizable to hiring, plus didn't they just lose a ton of data?
Mason Torres
Is there some ftp plugin for VIM?
Henry Diaz
:42 My fav
Carson Jackson
how do i open lots of files in one window as everything was inside one file?
like if i scroll down, the second file is automatically mounted on bottom of the first one etc
i'm writing rather simple programs in c++ to solve computer intensive scientific problems, and they are so simple that two or three split windows are more than enough to work with it efficiently, but in c++ you """should""" keep things in different files, so that kinda ruins my workflow
picture unrelated
Henry Reyes
42G
Jacob Roberts
I think most modern linux editors do that. Vim and Emacs are from a time where these keybindings weren't established yet, but there are some other editors. Like gedit, medit, or kate, or geany if you want something with some ide-like features. Sublime also works on linux if you like that.
Lincoln Collins
Oh fuck was all that downtime last night blowing my shit away
Fuck
Lucas Walker
Is there any way to move the cursor around in insert mode without using the arrow keys? Would really like to keep my fingers on the home row, but I often find myself pressing C-[ just to move the cursor back a word or up a line or two.
Tangentially, are there any recommended resources for learning vim after vimtutor?
Brayden Hall
Who that?
Alexander Carter
bella thorne, follow her on snapchat, she uses vim on her macbook from time to time
Jayden Garcia
>It is included as "vi" with most UNIX systems Actually the vi on Unix systems is nvi.
Noah Morgan
>she uses vim on her macbook from time to time that's so hot
Mason Robinson
>[hnnngg intensifies]
Easton Gonzalez
[citation needed]
Wyatt Cox
can you elaborate on netrw
Dominic Peterson
nmap G 42 enter
Leo Fisher
I am editing a .py file, and I have both "syntax on" + set listchars=tab:\|\ However, my tabs are not like this: for each in 'ebin': | print each | for each in 'benis': | | print each
but rather blank usual tabs.
What do?
Cooper Brown
To add to , Atom is also an option. It has a pretty good package management system, is easy to configure, and is heavily communtiy-driven. It's comparable to Sublime, however more bloated and much younger.
I tried Atom for about a month before switching back to emacs, but it may be what you're looking for.
Jose Davis
let g:airline_powerline_fonts = 1
Michael Rivera
pls respond
Jaxson Cook
did you set list too?
Ethan Morgan
yes
Aiden Robinson
The point is it is working as intended when it is not a .py file, but rather a file without an extension.
Asher Sanchez
github.com/metakirby5/codi.vim Not working on this much anymore but it's the only plugin I've made. Wish I used Python async/pty instead of vim and script so Windows users could be happy.
Jose Young
File mux seems interesting and simple enough, might write one to learn golang
Mason King
damn that looks really cool man
Angel White
I know I can run a script with :!interpreter %
is it then possible to save the output to a file? and how can I make it deal nicely with escape sequences (i.e. colored output)?