Comments (7)
@rajorshi-mandal
Additionally, you could add your own editors into the list that would launch as a shortcut when you type vim
Please note for anything outside of code or notepad you would need to add those to your PATH.
$EDITOR='nvim'
} elseif (Test-CommandExists pvim) {
$EDITOR='pvim'
} elseif (Test-CommandExists vim) {
$EDITOR='vim'
} elseif (Test-CommandExists vi) {
$EDITOR='vi'
} elseif (Test-CommandExists code) {
$EDITOR='code'
} elseif (Test-CommandExists notepad) {
$EDITOR='notepad'
} elseif (Test-CommandExists notepad++) {
$EDITOR='notepad++'
} elseif (Test-CommandExists sublime_text) {
$EDITOR='sublime_text'
}
Set-Alias -Name vim -Value $EDITOR
from powershell-profile.
i am not sure if its only with my system but when i typed "vim" i am getting the following error
its working in normal powershell but launching it with windows terminal doesn't seem to work does they have different commands for execution ?
from powershell-profile.
In this block of Chris's Script he is checking to see what is installed on your system to determine which editor to use.
if (Test-CommandExists nvim) { $EDITOR='nvim' } elseif (Test-CommandExists pvim) { $EDITOR='pvim' } elseif (Test-CommandExists vim) { $EDITOR='vim' } elseif (Test-CommandExists vi) { $EDITOR='vi' } Set-Alias -Name vim -Value $EDITOR
The options are Neovim
https://github.com/neovim/neovim/wiki/Installing-Neovim
(I can only assume pvim is parasitic vim, and it uses the nimble library)
https://github.com/paranim/pvim
vim
https://www.vim.org/download.php
-or-
winget install vim.vim
vi
(I think you need to install cygwin to get this?)
So I think the best options would be to get neovim or vim installed.
from powershell-profile.
@rajorshi-mandal Did this resolve your issue? If Not Please share what error messages you are getting now.
The Alternative if you do not mind having a "vim" alias, is that you can remove or comment out that chunk of code or at minimum the Set-Alias Line.
from powershell-profile.
For all the EDITOR messages, just put this on line 133 just before the 'if (Test-CommandExists nvim) {'
So the editor will be notepad if none of the other commands exist.
$EDITOR="notepad.exe"
from powershell-profile.
In this block of Chris's Script he is checking to see what is installed on your system to determine which editor to use.
if (Test-CommandExists nvim) { $EDITOR='nvim' } elseif (Test-CommandExists pvim) { $EDITOR='pvim' } elseif (Test-CommandExists vim) { $EDITOR='vim' } elseif (Test-CommandExists vi) { $EDITOR='vi' } Set-Alias -Name vim -Value $EDITOR
The options are Neovim https://github.com/neovim/neovim/wiki/Installing-Neovim
(I can only assume pvim is parasitic vim, and it uses the nimble library) https://github.com/paranim/pvim
vim https://www.vim.org/download.php -or- winget install vim.vim
vi (I think you need to install cygwin to get this?)
So I think the best options would be to get neovim or vim installed.
Thanks @TheyCallMeZ i had same issue #19 and as you recomended 'neovim or vim' could resolve that problem and i did 'choco install neovim' and Wallah its worked!
from powershell-profile.
Took @TheyCallMeZ snippit to expand the editors to fix this issue in commit 7381f33
from powershell-profile.
Related Issues (20)
- Web request status endless loop
- Endlessly Promping during Installation HOT 2
- installation issue..... HOT 1
- Installation broke HOT 6
- InvalidOperation: The script failed due to call depth overflow.
- Test-Connection errors HOT 2
- Changes made to the profile are discarded after a restart
- A parameter cannot be found that matches parameter name 'TimeoutSeconds'. HOT 1
- Suggestion about Oh-My-Posh config change HOT 1
- edit-profile does not point to $profile HOT 3
- Delete command from curl
- A few issues when running the install...
- Test-connection -TimeSeconds parameter not recongnized (NamedParameterNotFound) HOT 4
- Fonts ZIP file missing in installation folder? HOT 3
- Bitdefender blocking install HOT 1
- Suggestion add fastfetch on startup
- Lost personal configuration when update HOT 4
- Nothing happens after install HOT 4
- Fail on Test-Connection HOT 3
- Loading personal and system profiles takes around 10 seconds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershell-profile.