I want to do text editing on a Mac and what I'd like to have is:
VIM editor built in
a tree view to open and switch between files more quickly
Should I go with vim and a tree plugin? Or is there a good text editing program with VIM built-in?
What are your experiences with that combination? Do you have any other recommendation?
Use NERDTree with macvim.
Have you tried gvim for mac http://macvim.org/OSX/index.php
I don't have a mac but do use gvim on various windows and linux installs.
Use VIM explorer
Vim has file explorer with standard installation, to open it on the left side, first open file with vim and do:
:vs
This will split the window in half with the same file, then:
:E
or
:Explore
there is help at the top and standard vim navigation works to open file or directory just hit Enter. To enable tree like view in there you will need this to be added to your ~/.vimrc:
g:netrw_liststyle=3
I never tried the above solutions but benefit of this is that you can get it working in couple of minutes with out of the box vim.
Bonus Feature
If you open directory with vim just hit i to change the modes.
Related
I've installed and uninstalled NERDTree in my .vimrc using vim-plugged. For some reason on my PopOS terminal when I open it, it shows two panes instead of one. I have this installed on different machines the same way without two panes opening. Any idea why?
I had a script in my .vimrc that was checking if it was open and if not, open it. Apparently, it wasn’t detecting it being open.
I want to make iTerm2 as my default terminal on macOS,
I open iTerm2 and hit to make iTerm default Term
But it's not working!
And I go to default terminal preferences
But after open it I see this
(Open iTerm Build version 3.3.7)
Menu: iTerm2 > Make iTerm2 Default Term
It sounds like you need to rebuild your macOS' LaunchServices.
To do this, download OnyX and choose the version based on your current macOS version.
The option that you need is in the red box, and I'd suggest that you UNCHECK anything that you don't need or don't know; otherwise, you might end up with deleting data that you might need:
After that, you can try again with the built-in Make iTerm2 Default Term option in iTerm2 (if this option is greyed out for you, click option + the iTerm menu button to re-enable it again).
There are ways to do this through the command line without downloading third-party apps, but I trust OnyX enough to hand it the job.
However, if you decide to do it from the command line, make sure you type the command that corresponds to your current macOS version. More on that here.
Hope this helps :)
Use this location instead:
/Applications/iTerm.app/Contents/MacOS/iTerm2
but note that it will not solve your issue completely. Termianal will start anyway, but this time, it will run iTerm2 - as you instructed it to do.
One thing you can do is find the file that opens a terminal (in my case it was metro opening in a React Native app). Find the file in your finder, right click on it, choose get info, then expand the Open With tab. There you should find a dropdown menu on what to open those kind of files with. The default is terminal, but choose iTerm2 and click on change all.
For example, in my situation I had to find launchPackager.command file under node_modules/react-native/scripts/. Do the above with that file and it will make iTerm your default terminal after clicking change all.
From where do you want to open the terminal? I was facing the same problem as you when I wanted to open the external terminal from Visual Studio Code.
I solved it by going to Code > Preferences > Settings. Look for terminal in the search bar and setting /Applications/iTerm.app in Terminal > External for your operating system.
I've been dying to get this working on the default terminal on the mac, this feature is really useful when you write something wrong, and can just cmd + backspace to delete all the lines.
I googled online several times but I couldn't find anything related to this.
Well, the functionality is already there: ⌃+U will delete everything left to your cursor to the beginning of the line. You cannot, however, change this keyboard shortcut.
You can change application-specific keybindings by installing additional tools like, for example, Karabiner.
Alternatively, you can install iTerm2 as a Terminal replacement. That will allow you to enable this - and many other text editing keybindings - with one click in the settings.
My Neovim on windows 10 installed using chocolatey method guided by the website of Neovim, does not have any GUI element (including tab, menu, or toolbar) after I run nvim-qt.exe. Can any one help me? Now, both the _vimrc and all the Vunle Plugin of my gVim are loaded succeed into my Neovim environment. The screen looks like this,
cool_neovim_screen_but_without_gui_element
You should look up the gui settings options
:h guioptions
In vim/nvim.
I do:
set guioptions=egmrti
In my nvim startup file to remove menu, scrollbars, and a few other things. Against look at the documentation to see what each of those letters set/unset.
I'm in the process of creating my own syntax colour theme for Sublime Text 3. I've done quite a lot but I want to copy most of the JavaScript colour syntax from the default 'Cobalt' theme that comes with ST3 (and possibly mix-and-match from other themes). I can't seem to find the Cobalt theme anywhere on my Mac?
Any ideas on where this might be?
Instead of navigating through /Applications, the easiest way of accessing built-in packages in Sublime Text 3 is to use #skuroda's excellent PackageResourceViewer plugin, available through Package Control. Once installed, restart Sublime and hit ⌘ShiftP to open the Command Palette. Type prv to bring up the PackageResourceViewer options, and select Open Resource. Scroll down to Color Scheme - Default, hit Enter, then scroll down to select Cobalt.tmTheme and hit Enter. You can now hit Esc to get rid of the menu, and start looking through the theme file for the bits you want to copy.
Good luck!
In Sublime Text installation directory, if I'm not mistaken, that's /Applications/ on OS X, there's a Packages directory, which contains a package file Color Scheme - Default.sublime-package which contains all the default color schemes.
.sublime-package is a simple zip file with modified extension, so you may simply copy it somewhere in your home directory, extract it and browse through the Cobalt.tmTheme file.
P.S. If you have trouble opening it with OS X archive manager, you may simply rename it:
mv name.sublime-package name.zip
But as far as I remember, it could be done simply like (correct me here if I'm wrong)
unzip name.sublime-package -d somedir